import Request from "@/utils/request.js"
let request = new Request().http

// 查询公告列表
export function listNotice(query) {
    return request({
        url: '/system/notice/list',
        method: 'GET',
        params: query
    })
}

// 查询公告详细
export function getNotice(noticeId) {
    return request({
        url: '/system/notice/' + noticeId,
        method: 'GET'
    })
}

// 获取最新公告
export function getLastNotice() {
    return request({
        url: '/system/notice/last',
        method: 'GET'
    })
}
